package com.hq.random;

import java.util.Random;

public class Demo {
    public static void main(String[] args) {


       // System.out.println(random);


//        for (int i = 0; i <100 ; i++) {
//            double random = Math.random();
//            int v = (int) (random * 10)+1;
//            System.out.println(v);
//        }

        for (int i = 0; i <100 ; i++) {
            Random r2 = new Random();
            int v = r2.nextInt(10)+1;
            System.out.println(v);
        }


    }
}
